package com.google.code.irouter.portal.client.rpc.queue;

import java.util.List;

import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

@RemoteServiceRelativePath("QueueService")
public interface QueueService extends RemoteService {
	/**
	 * Utility class for simplifying access to the instance of async service.
	 */
	public static class Util {
		private static QueueServiceAsync instance;
		public static QueueServiceAsync getInstance(){
			if (instance == null) {
				instance = GWT.create(QueueService.class);
			}
			return instance;
		}
	}
	
	List<QueueResult> load(String solutionId) throws IllegalArgumentException;
	boolean remove(String[] ids) throws IllegalArgumentException;
}
